//
//  WeiboSpaceHttp.h
//  WeiboSpace
//
//  Created by  linan4 on 12-3-6.
//  Copyright 2012 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import"WeiboHttpEngineDelegate.h"
typedef enum {
	Get = 0,
	Post
	
} EumWebMethod;


@interface WeiboHttpEngine : NSObject {
	
	NSMutableData *reslutData;
	NSObject <WeiboHttpEngineDelegate> *_delegate;
	
}
-(WeiboHttpEngine *) InitWeiboSpaceWithDelegate:(id)newDelegate;
-(void) SendHttpRequest:(EumWebMethod) method
			 requestUrl:(NSString*) url
			  urlParams:(NSDictionary *)urlParams
			 bodyParams:(NSDictionary *)bodyparams
			accessToken:(NSString*) newAccessToken;
@end

@interface WeiboHttpEngine()
- (NSString *)_bodyStringWithbase:(NSDictionary*)params;
- (NSString *)_queryStringWithBase:(NSString *)base parameters:(NSDictionary *)params prefixed:(BOOL)prefixed;
@end
